package com.xuchang.model;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.format.NumberFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 提现表 导出对象
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CashWithdrawalsDto {

    @ExcelProperty(value = "用户ID")
    @ColumnWidth(20)
    private Long userId;

    @ExcelProperty(value = "币种ID")
    @ColumnWidth(20)
    private Long coinId;

    @ExcelProperty(value = "资金账户ID")
    @ColumnWidth(20)
    private Long accountId;

    @ExcelProperty(value = "数量（提现金额）")
    @NumberFormat("#.######")
    @ColumnWidth(20)
    private BigDecimal num;

    @ExcelProperty(value = "手续费")
    @NumberFormat("#.######")
    @ColumnWidth(20)
    private BigDecimal fee;

    @ExcelProperty(value = "到账金额")
    @NumberFormat("#.######")
    @ColumnWidth(20)
    private BigDecimal mum;

    @ExcelProperty(value = "开户人")
    @ColumnWidth(20)
    private String truename;

    @ExcelProperty(value = "银行名称")
    @ColumnWidth(20)
    private String bank;

    /**
     * 状态：0-待审核；1-审核通过；2-拒绝；3-提现成功；
     */
    @ExcelProperty(value = "status", converter = StatusConverter.class)
    @ColumnWidth(20)
    private Integer status;


    @ExcelProperty(value = "更新时间")
    @ColumnWidth(20)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date created;

    @ExcelProperty(value = "更新时间")
    @ColumnWidth(20)
    @DateTimeFormat("yyyy-MM-dd")
    private Date lastUpdateTime;
}